<?$res=$sql->request("SELECT * FROM `".CFG_MYSQL_PREFIX."header` WHERE 1");$headerA = array();foreach($res as $headerI){	$headerA[] = $headerI->fileName;}$dir = "./images/header/";$filelist = scandir($dir);foreach($filelist as $file){	if($file != "." && $file != "..")		$pictureslist[] = $file;}